package com.hq.door.service;

import java.util.List;

public interface IBaseService<T> {
	public void save(T entity);
	public void update(T entity);
	public void delete(T entity);
	public void saveOrUpdate(T entity);
	public T get(int id);
	public List<T> find(String hql,Object[] values);
	public <T> List<T> findPageObjects(final String hql, final int pageStart, 
			final int pageSize ,final Object... conditions) ;
	
}
